Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump lint-staged from 15.2.10 to 15.3.0 #426

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 6, 2025

Bumps lint-staged from 15.2.10 to 15.3.0.

Release notes

Sourced from lint-staged's releases.

v15.3.0

Minor Changes

  • #1495 e69da9e Thanks @​iiroj! - Added more info to the debug logs so that "environment" info doesn't need to be added separately to GitHub issues.

  • #1493 fa0fe98 Thanks @​iiroj! - Added more help messages around the automatic git stash that lint-staged creates as a backup (by default). The console output also displays the short git hash of the stash so that it's easier to recover lost files in case some fatal errors are encountered, or the process is killed before completing.

    For example:

    % npx lint-staged
    ✔ Backed up original state in git stash (20addf8)
    ✔ Running tasks for staged files...
    ✔ Applying modifications from tasks...
    ✔ Cleaning up temporary files...
    

    where the backup can be seen with git show 20addf8, or git stash list:

    % git stash list
    stash@{0}: lint-staged automatic backup (20addf8)
    

v15.2.11

Patch Changes

  • #1484 bcfe309 Thanks @​wormsik! - Escape paths containing spaces when using the "shell" option.

  • #1487 7dd8caa Thanks @​iiroj! - Do not treat submodule root paths as "staged files". This caused lint-staged to fail to a Git error when only updating the revision of a submodule.

Changelog

Sourced from lint-staged's changelog.

15.3.0

Minor Changes

  • #1495 e69da9e Thanks @​iiroj! - Added more info to the debug logs so that "environment" info doesn't need to be added separately to GitHub issues.

  • #1493 fa0fe98 Thanks @​iiroj! - Added more help messages around the automatic git stash that lint-staged creates as a backup (by default). The console output also displays the short git hash of the stash so that it's easier to recover lost files in case some fatal errors are encountered, or the process is killed before completing.

    For example:

    % npx lint-staged
    ✔ Backed up original state in git stash (20addf8)
    ✔ Running tasks for staged files...
    ✔ Applying modifications from tasks...
    ✔ Cleaning up temporary files...
    

    where the backup can be seen with git show 20addf8, or git stash list:

    % git stash list
    stash@{0}: lint-staged automatic backup (20addf8)
    

15.2.11

Patch Changes

  • #1484 bcfe309 Thanks @​wormsik! - Escape paths containing spaces when using the "shell" option.

  • #1487 7dd8caa Thanks @​iiroj! - Do not treat submodule root paths as "staged files". This caused lint-staged to fail to a Git error when only updating the revision of a submodule.

Commits
  • 703002a chore(changeset): release
  • 4cee7d8 build(dependencies): update dependencies
  • ef9b02d Merge pull request #1495 from lint-staged/debug-info
  • e69da9e feat: add more info to debug logs, remove "environment" requirement from issu...
  • 1b36f55 docs: combine changesets
  • 6c9ab40 Merge pull request #1493 from lint-staged/help-messages
  • 22fe89d feat: add unique hash to backup stash message
  • c52cc92 docs: add a caution message about git stash
  • fa0fe98 feat: update first task message based on backup status
  • 7bd0447 feat: display "git stash list" message when restoring original state is skipped
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by Sourcery

Build:

  • Bump lint-staged from 15.2.10 to 15.3.0.

Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.2.10 to 15.3.0.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v15.2.10...v15.3.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added _bot [BOT only] Issue or PR made by a bot. dependencies Dependency updates and their version upgrades. labels Jan 6, 2025
Copy link

sourcery-ai bot commented Jan 6, 2025

Reviewer's Guide by Sourcery

This PR upgrades lint-staged from version 15.2.10 to 15.3.0. This upgrade includes improved debug logs, helpful git stash messages during linting, and fixes for escaping paths with spaces and handling submodule root paths.

Sequence diagram for improved lint-staged backup process

sequenceDiagram
    participant U as User
    participant LS as Lint Staged
    participant Git as Git

    U->>LS: Run lint-staged
    LS->>Git: Create backup stash
    Git-->>LS: Return stash hash (e.g., 20addf8)
    LS->>U: Display backup confirmation with hash
    LS->>LS: Run linting tasks
    LS->>LS: Apply modifications
    LS->>LS: Clean up temp files
    LS->>U: Display completion message
Loading

State diagram for lint-staged error handling improvements

stateDiagram-v2
    [*] --> Running
    Running --> BackupCreated: Create git stash
    BackupCreated --> TasksRunning: Run lint tasks
    TasksRunning --> Success: Tasks complete
    TasksRunning --> Error: Fatal error
    Error --> RecoveryPossible: Stash hash available
    RecoveryPossible --> [*]: Manual recovery using hash
    Success --> [*]: Cleanup complete
Loading

File-Level Changes

Change Details Files
Upgrade lint-staged to 15.3.0
  • Updated the lint-staged dependency version in package.json.
  • Updated the lint-staged dependency version in package-lock.json.
package.json
package-lock.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for neurobagel-query ready!

Name Link
🔨 Latest commit f5f183f
🔍 Latest deploy log https://app.netlify.com/sites/neurobagel-query/deploys/677b5ffd51012a0008afb725
😎 Deploy Preview https://deploy-preview-426--neurobagel-query.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@surchs surchs merged commit 3a5f2c9 into main Jan 6, 2025
14 checks passed
@surchs surchs deleted the dependabot/npm_and_yarn/lint-staged-15.3.0 branch January 6, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
_bot [BOT only] Issue or PR made by a bot. dependencies Dependency updates and their version upgrades.
Projects
Status: Review - Done
Development

Successfully merging this pull request may close these issues.

1 participant